home *** CD-ROM | disk | FTP | other *** search
/ World Tours: Brazil / WorldTours: Brazil.iso / mac / content / main.dir / 00052_Script_select chapter < prev    next >
Text File  |  2007-04-22  |  602b  |  37 lines

  1. global chapterCount,firstChapter,curChapter
  2.  
  3. on mouseenter
  4.   
  5.   n=the currentspriteNum
  6.   
  7.   if sprite(n+20).member.text="" then exit
  8.   
  9.   sprite(n+10).forecolor=4
  10.   sprite(n+20).forecolor=4
  11.   cursor 280
  12.   
  13. end
  14.  
  15. on mouseleave
  16.   n=the currentspriteNum
  17.   sprite(n+10).forecolor=0
  18.   sprite(n+20).forecolor=0
  19.   cursor -1
  20. end
  21.  
  22. on mouseup
  23.   
  24.   n=the currentspriteNum
  25.   
  26.   if sprite(n+20).member.text="" then exit
  27.   
  28.   
  29.   curChapter=firstChapter+(n-7)
  30.   if curChapter>chapterCount then curChapter=chapterCount
  31.   
  32.   gotoVideo()
  33.   
  34.   refalshChapterContent()
  35.   
  36.   cursor -1
  37. end